package com.zzy.furns.service.impl;

import com.zzy.furns.dao.AdminDAO;
import com.zzy.furns.dao.impl.AdminDAOImpl;
import com.zzy.furns.domain.Admin;
import com.zzy.furns.service.AdminService;

public class AdminServiceImpl implements AdminService {

    private AdminDAO adminDAO = new AdminDAOImpl();
    @Override
    public boolean queryAdminByAdminnameAndPassword(String adminname, String password) {
        Admin admin = adminDAO.queryAdminByAdminnameAndPassword(adminname, password);
        return admin == null? false : true;
    }
}
